<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Add Building</title>
</head>

<body>

<h1>UNO Course Scheduler - Add Building</h1>
<?php
//get num_rows currently in buildings table
$num_rows = $_GET['id'];

echo '<form action="add_do.php" method="get">';

//start table
echo "<table border='0'>";
	
	//create table row
	echo "<tr>";
		echo "<td><b>Building Name</b></td>";
		echo '<td><input type="text" name="name"></td>';
	echo "</tr>";
	
	//create table row
	echo "<tr>";
		echo "<td><b>Abbreviation</b></td>";
		echo '<td><input type="text" name="abbrev"></td>';
	echo "</tr>";


//end table tag
echo "</table>";

echo "<input type='hidden' name='id' value='$num_rows'>";
echo '<input type="submit">';
echo '</form>';

?>

<p>
	<a href="index.php">&lt;&lt; Back to Buildings Portal</a>
</p>
</body>
</html>